package com.example.chatroom.common.errorcode;




public interface ServiceErrorCodeConstants {
    /**
     * 根据业务区分错误码
     */

    /**
     * 用户业务
     */
    ErrorCode USER_NOT_EXIST_ERROR=new ErrorCode(3000,"用户不存在");
    ErrorCode USER_PASSWORD_ERROR=new ErrorCode(3001,"用户密码错误");
    ErrorCode USER_USER_NAME_EXISTS=new ErrorCode(3002,"用户名已存在");
    ErrorCode USER_TOKEN_NOT_EXISTS=new ErrorCode(3003,"请求的userToken为空");
    ErrorCode USER_BLACK_TOKEN_REDIS_ERROR=new ErrorCode(3004,"redis缓存黑名单错误");
    ErrorCode USER_TOKEN_UNLAWFUL=new ErrorCode(3005,"userToken非法");
    /**
     * 会话业务
     */
    ErrorCode SESSION_PARAM_ERROR=new ErrorCode(4000,"参数异常");
    /**
     * 消息业务
     */
    ErrorCode MESSAGE_NOT_EXISTS=new ErrorCode(5000,"消息不存在");

    /**
     * websocket
     */
    ErrorCode WEBSOCKET_ONLINE_ERROR=new ErrorCode(6000,"websocket: 上线失败");
    ErrorCode WEBSOCKET_OFFLINE_ERROR=new ErrorCode(6001,"websocket: 下线失败");
    ErrorCode WEBSOCKET_GET_SESSION_ERROR=new ErrorCode(6002,"websocket: 获取session失败");

    /**
     * 添加好友
     */
    ErrorCode APPLY_FRIEND_STATE_ERROR=new ErrorCode(7000,"添加好友: state不为0");
    ErrorCode APPLY_FRIEND_INFO_ERROR=new ErrorCode(7001,"添加好友表中不存在该记录");
    ErrorCode APPLY_FRIEND_FRIEND_ERROR=new ErrorCode(7002,"双方已经是好友了");
    ErrorCode APPLY_FRIEND_STATE=new ErrorCode(7003,"state为0");
}
